﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace Lottery.Client.SL.Controls
{
    public partial class LoginProgress : UserControl
    {
        public bool Stop { get; set; }
        public IMainPage ISM { get; set; }
        public LoginProgress()
        {
            InitializeComponent();
            this.Loaded += InitControls;
        }
        private void InitControls(object obj, RoutedEventArgs routedEventArgs)
        {
            var rectangleGeometry = new RectangleGeometry {RadiusX = 5.0, RadiusY = 5.0};
            Rect rect = default(Rect);
            rect.Width = 200.0;
            rect.Height = 12.0;
            rectangleGeometry.Rect = rect;
            this.Progess.Clip = rectangleGeometry;
            this.stbWait.Begin();
        }
        public void SetWaitCount(string stateValue)
        {
            this.tbStateText.Text = stateValue;
        }

        
    }
}
